<?php include 'header.php'; ?>
<?php include 'verifform.php'; 
include 'connect.php'; ?>

<div id="teaser">
	  </div>
<script type="text/javascript">
	//<![CDATA[
	$(document).ready(function(){

	}); 
	//]]>

</script>
	  <div id="main">

		<div id="gauche">
			<div class="nothing">
				<?php include 'sidebar.php'; ?>
			</div>
		</div>

		<div id="droite">
			<div class="nothing">
				<div class="subcolumns">
					<div class="c25l">
						<div class="subcl">
							<div class="ylert">
							<?php

							if ( isset($_GET['pseudo'] ))
							{
								include 'connect.php';
								$sql = "SELECT * FROM $table_name 
								  WHERE user_name='$_GET[pseudo]'";
								$result = mysql_query($sql);
								$infos = mysql_fetch_array($result);

								if ( $infos['public'] == 1)
								{


							?>
							<div class="contact vcard">
								<span class="given-name"><?php echo $infos['first_name'];?></span> <span class="family-name"><?php echo $infos['last_name'];?></span>
								<br />
								<span class="postal-code"><?php echo $infos['zip'];?></span> <span class="country-name"><?php echo $infos['city'];?></span>

								<ul class="l-list">
									<?php if($infos['skype'] != ""){ ?>
										<li class="l_skype">
										<img src="<?php echo $_GLOBALS['site_url']; ?>img/profil/SkypeIcons.png" alt="SkypeIcons" />
										<a href="skype:<?php echo $infos['skype']; ?>?call" title="Skype" target="_blank"> Skype</a></li> <?php }?>

									<?php if($infos['linkedin'] != ""){ ?>
										<li class="l_linkedin">
										<img src="<?php echo $_GLOBALS['site_url']; ?>img/profil/linkedin.png" alt="linkedin" />
										<a href="http://www.linkedin.com/in/<?php echo $infos['linkedin']; ?>" title="LinkedIn" target="_blank"> LinkedIn</a></li><?php }?>

									<?php if($infos['pseudo_flickr'] != ""){ ?>
										<li class="l_flickr">
										<img src="<?php echo $_GLOBALS['site_url']; ?>img/profil/flickr.png" alt="linkedin" />
										<a href="http://www.flickr.com/photos/<?php echo $infos['pseudo_flickr']; ?>" title="Flickr" target="_blank"> Flickr</a></li><?php }?>

									<?php if($infos['ziki_url'] != ""){ ?>
										<li class="l_ziki">
										<img src="<?php echo $_GLOBALS['site_url']; ?>img/profil/ziki.png" alt="ziki" />
										<a href="<?php echo $infos['ziki_url']; ?>" title="Ziki" target="_blank"> Ziki</a></li><?php }?>
								</ul>


							</div>
							<?php } ?>

							<?php }
								else
								{ 
								include 'erreur.php'; 
								} 
							?>
							</div>

						</div>
					</div>

					<div class="c75r">
					<script type="text/javascript">
						//<![CDATA[
						$(document).ready(function(){
							$(".tab-info > ul").tabs();
						});

						//]]>
					</script>
						<div class="subcr tab-info">
							<ul class="ui-tabs-nav">
								<li class="ui-tabs-nav-item"><a href="#fragment-1">Resume</a></li>
								<li class="ui-tabs-nav-item"><a href="#fragment-2">Education</a></li>
								<li class="ui-tabs-nav-item"><a href="#fragment-3">Parcours Professionnel</a></li>
							</ul>
							<div id="fragment-1">
								<?php include 'php/mod_cv_resume.php';?>
							</div>
							<div id="fragment-2">
								<?php include 'php/aff_public_educ.php';?>		
							</div>
							<div id="fragment-3">
								<?php include 'php/aff_public_pro.php';?>		
							</div>


						</div>
					</div>
				</div>
			</div>
		</div>

<? include 'footer.php'; ?>